/**
 * @FileName Singleton.java
 * @Package com.designMode.singleton
 * -------------------------------------
 * @function Please write description of function
 * @Date 2016-1-5 下午2:13:57
 * -------------------------------------
 * Copyright (c) 2016,顾博君 All Rights Reserved.
 */
package com.designMode.singleton;

/**
 * @ClassName Singleton
 * @author 顾博君
 * @Date 2016-1-5 下午2:13:57
 * @Function
 */
public class Singleton {
	private static final Singleton singleton = new Singleton();

	// 限制产生多个对象
	private Singleton() {
	}

	// 通过该方法获得实例对象
	public static Singleton getSingleton() {
		return singleton;
	}

	// 类中其它方法，尽量使static
	public static void doSomething() {
	}
}
